package com.ruge.spring.cloud.gateway.base.token;

import com.ruge.spring.cloud.gateway.base.exception.IError;
import com.ruge.spring.cloud.gateway.base.response.Response;

/**
 * @author 嘿丷如歌
 * @version V1.0
 * @Description: 校验token成功后的返回对象
 * @date 2021/4/26 21:46
 */
public class CheckTokenResponse extends Response {
    private Token token;

    public CheckTokenResponse(IError error) {
        super(error);
    }

    public CheckTokenResponse() {
    }

    public Token getToken() {
        return token;
    }

    public void setToken(Token token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "CheckTokenResponse{" +
                "token=" + token +
                "} " + super.toString();
    }
}
